package com.yxh.lib_base.util.photo

import androidx.annotation.IntRange

/**
 * 作者 : yuan_xh
 * 时间 : 2022/7/7 10:13
 * 说明 : 图片选择
 */
interface IPhotoSelectorEngine {
    //选择单张 - 图片或视频
    fun openPhotoSingle(
        any: Any,
        type: Int = MimeType.TYPE_IMAGE,
        onResult: (Int, String) -> Unit
    ) {
    }

    fun openPhotoSingle(
        any: Any,
        type: MimeTypeMenu.() -> Int,
        onResult: (Int, String) -> Unit
    ) {
    }

    fun openPhotoMultiple(
        any: Any,
        type: Int = MimeType.TYPE_IMAGE,
        @IntRange(from = 1) max: Int,
        onResult: (List<Pair<Int, String>>) -> Unit
    ) {
    }


    fun openCamera(any: Any, onResult: (Int, String) -> Unit){

    }


}